<!DOCTYPE html>
<html lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
	
	<!-- title -->
	
	<title>
	
		30-centos6安装oracle11g | 
	 
	星河
	</title>
	
	<!-- keywords,description -->
	 

	<!-- favicon -->
	
	<link rel="shortcut icon" href="/xinghe/favicon.ico">
	


	<!-- search -->
	<script>
		var searchEngine = "https://www.google.com/search?q=";
		if(typeof searchEngine == "undefined" || searchEngine == null || searchEngine == ""){
			searchEngine = "https://www.google.com/search?q=";
		}
		var homeHost = "wujun234.github.io";
		if(typeof homeHost == "undefined" || homeHost == null || homeHost == ""){
			homeHost = window.location.host;
		}
	</script>


	
<link rel="stylesheet" href="/xinghe/css/main.css">

	
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">

	
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/styles/darcula.min.css">

	
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css">


	
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>

	
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>

	
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/highlight.min.js"></script>

	
<script src="https://cdn.jsdelivr.net/npm/jquery-pjax@2.0.1/jquery.pjax.min.js"></script>

	
<script src="/xinghe/js/main.js"></script>

	
		
<script src="https://cdn.jsdelivr.net/npm/leancloud-storage/dist/av-min.js"></script>

		
<script src="https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js"></script>

	
	
		<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
	
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
	<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?3efe99c287df5a1d6f0d02d187e403c1";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

<header id="header">
    <a id="title" href="/xinghe/" class="logo">星河</a>

	<ul id="menu">
		
	

	

		<li class="menu-item">
			<a href="https://blog.csdn.net/springyh" class="menu-item-link" target="_blank">
				myblog
			</a>
		</li>
		<li class="menu-item">
			<a href="https://www.yuque.com/yinhehe" class="menu-item-link" target="_blank">
				语雀
			</a>
		</li>
		<li class="menu-item">
			<a href="https://gitee.com/godyh" class="menu-item-link" target="_blank">
				<i class="fa fa-github fa-2x"></i>
			</a>
		</li>
	</ul>
</header>

	
<div id="sidebar">
	<button id="sidebar-toggle" class="toggle" ><i class="fa fa-arrow-right " aria-hidden="true"></i></button>
	
	<div id="site-toc">
		<input id="search-input" class="search-input" type="search" placeholder="按回车全站搜索">
		<div id="tree">
			

			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										01.面试系列
									</a>
									
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										01.java基础
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/01.java%E5%9F%BA%E7%A1%80/01-%E6%B3%A8%E8%A7%A3/">
										01-注解
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/01.java%E5%9F%BA%E7%A1%80/02-%E6%B3%9B%E5%9E%8B/">
										02-泛型
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/01.java%E5%9F%BA%E7%A1%80/03-JavaNIO/">
										03-JavaNIO
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/01.java%E5%9F%BA%E7%A1%80/04-%E5%8F%8D%E5%B0%84%E5%92%8C%E5%8A%A8%E6%80%81%E4%BB%A3%E7%90%86/">
										04-反射和动态代理
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										02.java并发
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/01-%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%9F%BA%E7%A1%80/">
										01-多线程基础
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/02-CAS/">
										02-CAS
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/03-synchronized/">
										03-synchronized
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/04-AQS%E5%92%8CReentrantLock/">
										04-AQS和ReentrantLock
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/05-%E7%BA%BF%E7%A8%8B%E6%B1%A0/">
										05-线程池
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/06-ThreadLocal/">
										06-ThreadLocal
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/07-CountDownLatch%E5%92%8CCyclicBarrier/">
										07-CountDownLatch和CyclicBarrier
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/08-%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81Java%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B/">
										08-为什么需要Java内存模型
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/02.java%E5%B9%B6%E5%8F%91/09-%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BAJava%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B/">
										09-深入浅出Java内存模型
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										03.java容器
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/03.java%E5%AE%B9%E5%99%A8/01-List%E9%9B%86%E5%90%88/">
										01-List集合
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/03.java%E5%AE%B9%E5%99%A8/02-Map%E9%9B%86%E5%90%88/">
										02-Map集合
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/03.java%E5%AE%B9%E5%99%A8/03-Set%E9%9B%86%E5%90%88/">
										03-Set集合
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										04.java虚拟机
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/04.java%E8%99%9A%E6%8B%9F%E6%9C%BA/01-java%E7%BC%96%E8%AF%91%E5%88%B0%E6%89%A7%E8%A1%8C%E8%BF%87%E7%A8%8B/">
										01-java编译到执行过程
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/04.java%E8%99%9A%E6%8B%9F%E6%9C%BA/02-%E5%8F%8C%E4%BA%B2%E5%A7%94%E6%B4%BE%E6%9C%BA%E5%88%B6/">
										02-双亲委派机制
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/04.java%E8%99%9A%E6%8B%9F%E6%9C%BA/03-JVM%E5%86%85%E5%AD%98%E7%BB%93%E6%9E%84/">
										03-JVM内存结构
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/04.java%E8%99%9A%E6%8B%9F%E6%9C%BA/04-%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%E6%9C%BA%E5%88%B6/">
										04-垃圾回收机制
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/04.java%E8%99%9A%E6%8B%9F%E6%9C%BA/05-CMS%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%E6%9C%BA%E5%88%B6/">
										05-CMS垃圾回收机制
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/04.java%E8%99%9A%E6%8B%9F%E6%9C%BA/06-G1%E5%9E%83%E5%9C%BE%E6%94%B6%E9%9B%86%E5%99%A8/">
										06-G1垃圾收集器
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										05.spring
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/05.spring/01-springMVC/">
										01-springMVC
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/05.spring/02-spring%E5%9F%BA%E7%A1%80/">
										02-spring基础
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/05.spring/03-springbean%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/">
										03-springbean生命周期
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										06.redis
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/06.redis/01-redis%E5%9F%BA%E7%A1%80/">
										01-redis基础
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/06.redis/02-redis%E6%8C%81%E4%B9%85%E5%8C%96/">
										02-redis持久化
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/06.redis/03-redis%E4%B8%BB%E4%BB%8E%E6%9E%B6%E6%9E%84/">
										03-redis主从架构
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/06.redis/04-redis%E5%88%86%E7%89%87%E9%9B%86%E7%BE%A4/">
										04-redis分片集群
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										07.消息队列
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/07.%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97/01-kafka%E5%9F%BA%E7%A1%80/">
										01-kafka基础
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/07.%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97/02-kafka%E8%80%83%E8%99%91%E7%9A%84%E9%97%AE%E9%A2%98/">
										02-kafka考虑的问题
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										08.mysql
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/08.mysql/01-mysql%E7%B4%A2%E5%BC%95/">
										01-mysql索引
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/08.mysql/02-mysql%E4%BA%8B%E5%8A%A1%E5%92%8C%E9%94%81%E6%9C%BA%E5%88%B6%E5%92%8CMVCC/">
										02-mysql事务和锁机制和MVCC
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/08.mysql/03-mysql%E8%B0%83%E4%BC%98/">
										03-mysql调优
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										09.场景
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/09.%E5%9C%BA%E6%99%AF/01-%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E5%8E%BB%E9%87%8D%E5%92%8C%E5%B9%82%E7%AD%89/">
										01-如何实现去重和幂等
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/09.%E5%9C%BA%E6%99%AF/02-%E7%B3%BB%E7%BB%9F%E9%9C%80%E6%B1%82%E5%8F%98%E5%8C%96%E8%AE%BE%E8%AE%A1/">
										02-系统需求变化设计
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/01.%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/09.%E5%9C%BA%E6%99%AF/03-%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">
										03-设计模式
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										02.常用工具类
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/01-CommonUtil/">
										01-CommonUtil
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/02-CookieUtils/">
										02-CookieUtils
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/03-DateUtils/">
										03-DateUtils
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/04-easyUIDataGrid%E5%AF%B9%E8%B1%A1%E8%BF%94%E5%9B%9E%E5%80%BC/">
										04-easyUIDataGrid对象返回值
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/05-Excel%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%B7%A5%E5%85%B7/">
										05-Excel阿里巴巴工具
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/06-Excel%E5%AF%BC%E5%87%BA%E5%B7%A5%E5%85%B7/">
										06-Excel导出工具
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/07-ExceptionUtil/">
										07-ExceptionUtil
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/08-FastDFSClient%E4%BD%BF%E7%94%A8/">
										08-FastDFSClient使用
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/09-FTP%E4%B8%8A%E4%BC%A0%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8/">
										09-FTP上传工具使用
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/11-HttpClientUtil/">
										11-HttpClientUtil
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/12-HttpContextUtils/">
										12-HttpContextUtils
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/13-IDUtils/">
										13-IDUtils
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/14-IPUtils/">
										14-IPUtils
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/15-isBlack%E5%92%8CisEmpty%E5%8C%BA%E5%88%AB/">
										15-isBlack和isEmpty区别
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/16-jedisclient%E6%93%8D%E4%BD%9CRedis%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										16-jedisclient操作Redis工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/17-json%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										17-json工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/18-md5%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										18-md5工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/19-PictureResult/">
										19-PictureResult
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/20-PPTtoImage%E5%AE%9E%E7%8E%B0PPT%E8%BD%AC%E5%8C%96%E4%B8%BAPDF/">
										20-PPTtoImage实现PPT转化为PDF
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/21-ShiroUtils/">
										21-ShiroUtils
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/22-shiro%E7%9A%84md5%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										22-shiro的md5工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/23-spring%E5%AE%B9%E5%99%A8MD5%E5%B7%A5%E5%85%B7/">
										23-spring容器MD5工具
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/24-spring%E4%B8%AD%E8%87%AA%E5%B8%A6%E7%9A%84%E5%8A%A0%E5%AF%86%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										24-spring中自带的加密工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/25-TaotaoResult/">
										25-TaotaoResult
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/26-TimeUtls/">
										26-TimeUtls
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/27-%E4%BB%8E%E7%BD%91%E7%BB%9C%E4%B8%8A%E8%8E%B7%E5%8F%96%E5%9B%BE%E7%89%87%E8%BD%AC%E6%8D%A2%E6%88%90%E5%AD%97%E8%8A%82%E6%B5%81%E6%88%96%E8%80%85%E4%BF%9D%E5%AD%98%E5%88%B0%E6%9C%AC%E5%9C%B0/">
										27-从网络上获取图片转换成字节流或者保存到本地
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/28-%E7%9F%AD%E4%BF%A1%E5%8F%91%E9%80%81%E4%B9%8B%E4%BA%92%E8%AF%91%E6%97%A0%E7%BA%BF/">
										28-短信发送之互译无线
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/29-%E9%9D%9E%E7%A9%BA%E5%88%A4%E6%96%AD/">
										29-非空判断
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/30-%E5%88%86%E9%A1%B5%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										30-分页工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/31-%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82%E7%9A%84%E5%87%A0%E7%A7%8D%E6%96%B9%E5%BC%8F/">
										31-跨域请求的几种方式
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/32-%E5%89%8D%E7%AB%AF%E9%9C%80%E8%A6%81%E7%9A%84%E6%95%B0%E6%8D%AE%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F/">
										32-前端需要的数据返回格式
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/33-%E7%9B%90%E5%80%BC%E7%94%9F%E6%88%90/">
										33-盐值生成
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/34-%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/">
										34-正则表达式
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/02.%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7%E7%B1%BB/35-%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%B7%A5%E5%85%B7%E7%B1%BB/">
										35-正则表达式工具类
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										03.springboot
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/03.springboot/01-SpringBoot%E7%BA%BF%E7%A8%8B%E6%B1%A0/">
										01-SpringBoot线程池
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
							<ul>
								<li class="directory">
									<a href="#" class="directory">
										<i class="fa fa-plus-square-o"></i>
										04.Linux
									</a>
									
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/01/04.Linux/01-Centos7%E5%BC%80%E6%94%BE%E5%8F%8A%E6%9F%A5%E7%9C%8B%E7%AB%AF%E5%8F%A3/">
										01-Centos7开放及查看端口
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/02-centos7%E5%AE%89%E8%A3%85seata/">
										02-centos7安装seata
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/03-centOS7%E5%AE%89%E8%A3%85Sentinel/">
										03-centOS7安装Sentinel
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/04-%E6%9F%A5%E7%9C%8Blinux%E5%86%85%E6%A0%B8%E7%89%88%E6%9C%AC/">
										04-查看linux内核版本
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/05-centos%E6%9B%B4%E6%94%B9yum%E6%BA%90/">
										05-centos更改yum源
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/06-Linux%E4%B8%8Bwhich%E3%80%81whereis%E3%80%81locate%E3%80%81find%E5%91%BD%E4%BB%A4%E7%9A%84%E5%8C%BA%E5%88%AB/">
										06-Linux下which、whereis、locate、find命令的区别
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/07-centos7%E5%AE%89%E8%A3%85%E4%BB%A3%E7%A0%81%E9%9B%A8cmatrix/">
										07-centos7安装代码雨cmatrix
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/08-gitblit/">
										08-gitblit
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/09-showdoc/">
										09-showdoc
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/10-CentOS7%E6%9F%A5%E7%9C%8B%E5%92%8C%E6%8E%A7%E5%88%B6%E8%BF%9B%E7%A8%8B/">
										10-CentOS7查看和控制进程
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/11-centos%E4%B8%AD%E5%A4%9A%E4%B8%AAtomcat%E9%85%8D%E7%BD%AE/">
										11-centos中多个tomcat配置
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/12-centos%E5%91%BD%E4%BB%A42021%E4%B9%8B%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE/">
										12-centos命令2021之基础环境配置
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/13-linux%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E7%A6%85%E9%81%93/">
										13-linux一键安装禅道
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/14-centos7%E5%AE%89%E8%A3%85docker/">
										14-centos7安装docker
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/15-tar%E8%A7%A3%E5%8E%8B%E5%88%B0%E6%8C%87%E5%AE%9A%E6%96%87%E4%BB%B6%E5%A4%B9/">
										15-tar解压到指定文件夹
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/16-Linux%E7%B3%BB%E7%BB%9F%E4%B8%8B%E6%9F%A5%E6%89%BE%E5%AE%89%E8%A3%85%E5%8C%85%E6%89%80%E5%9C%A8%E7%9B%AE%E5%BD%95%E7%9A%84%E5%85%AD%E7%A7%8D%E6%96%B9%E6%B3%95/">
										16-Linux系统下查找安装包所在目录的六种方法
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/17-%E6%9F%A5%E7%9C%8BCentOS%E7%89%88%E6%9C%AC%E6%96%B9%E6%B3%95/">
										17-查看CentOS版本方法
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/18-centos6%E8%AE%BE%E7%BD%AE%E5%BC%80%E6%9C%BA%E5%90%AF%E5%8A%A8/">
										18-centos6设置开机启动
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/19-%E9%98%BF%E9%87%8C%E4%BA%91centos%E5%AE%89%E8%A3%85%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2%EF%BC%8CVNC-VIEWER%E8%BF%9C%E7%A8%8B%E8%BF%9E%E6%8E%A5/">
										19-阿里云centos安装图形界面，VNC-VIEWER远程连接
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/20-centos6%E5%BF%98%E8%AE%B0%E5%AF%86%E7%A0%81/">
										20-centos6忘记密码
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/21-centos6%E5%AE%89%E8%A3%85zookeeper%E5%8D%95%E6%9C%BA%E7%89%88/">
										21-centos6安装zookeeper单机版
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/22-centos%E5%90%84%E4%B8%AA%E7%89%88%E6%9C%AC%E5%9C%B0%E5%9D%80/">
										22-centos各个版本地址
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/23-centos%E4%B8%8Byum%E5%91%BD%E4%BB%A4%E8%AF%A6%E8%A7%A3/">
										23-centos下yum命令详解
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/24-xshell%E4%BF%9D%E6%8C%81%E5%9C%A8%E7%BA%BF/">
										24-xshell保持在线
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/25-%E5%85%B3%E9%97%ADxshell6%E6%8F%90%E7%A4%BA%E9%9F%B3/">
										25-关闭xshell6提示音
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/26-centos6%E6%A8%A1%E6%9D%BF%E5%88%B6%E4%BD%9C%E6%A8%A1%E6%9D%BF/">
										26-centos6模板制作模板
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/27-Linux-yum%E5%8F%AA%E4%B8%8B%E8%BD%BD%E4%B8%8D%E5%AE%89%E8%A3%85/">
										27-Linux-yum只下载不安装
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/28-rmp%E5%8C%85%E6%9F%A5%E6%89%BE%E5%9C%B0%E5%9D%80/">
										28-rmp包查找地址
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file active">
									<a href="/xinghe/2021/10/02/04.Linux/30-centos6%E5%AE%89%E8%A3%85oracle11g/">
										30-centos6安装oracle11g
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/31-maven%E7%A7%81%E6%9C%8D%E4%B9%8Bnexus/">
										31-maven私服之nexus
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/32-centos6%E9%85%8D%E7%BD%AE%E5%BC%80%E6%9C%BA%E5%90%AF%E5%8A%A8%E6%96%B9%E5%BC%8F/">
										32-centos6配置开机启动方式
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/02/04.Linux/33-centos6%20%E5%AE%89%E8%A3%85redis%E9%9B%86%E7%BE%A4%E7%89%88/">
										33-centos6 安装redis集群版
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
							<ul>
								<li class="file">
									<a href="/xinghe/2021/10/03/04.Linux/35-CentOS7%E5%AE%89%E8%A3%85ElasticSearch/">
										35-CentOS7安装ElasticSearch
									</a>
								</li>
								<div class="article-toc" style="display: none;"></div>
							</ul>
			
								</li>
								
							</ul>
			
		</div>
	</div>
</div>

	<!-- 引入正文 -->
	<div id="content">
		<h1 id="article-title">

	30-centos6安装oracle11g
</h1>
<div class="article-meta">
	
		<span>
			阅读量:<span id="/xinghe/2021/10/02/04.Linux/30-centos6%E5%AE%89%E8%A3%85oracle11g/" class="leancloud_visitors" data-flag-title=""></span>
		</span>
	
	<span>YH</span>
	<span>2021-10-02 01:50:27</span>
		<div id="article-categories">
    
		<span>Categories：</span>
            
    

    
		<span>Tags：</span>
            
    
		</div>

</div>

<div id="article-content">
	<blockquote>
<p>切记:启动oracle时,使用oracle账户登录,xshell中su oracle没用<br>安装centos时,需要选择图形界面,安装完成后ping 中文域名,假如ping不通,主要修改yun源为阿里的</p>
</blockquote>
<h3 id="修改yum源为阿里的"><a href="#修改yum源为阿里的" class="headerlink" title="修改yum源为阿里的"></a>修改yum源为阿里的</h3><h4 id="第一步：备份你的原镜像文件，以免出错后可以恢复。"><a href="#第一步：备份你的原镜像文件，以免出错后可以恢复。" class="headerlink" title="第一步：备份你的原镜像文件，以免出错后可以恢复。"></a>第一步：备份你的原镜像文件，以免出错后可以恢复。</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup</span><br></pre></td></tr></table></figure>
<h4 id="第二步：下载新的CentOS-Base-repo-到-etc-yum-repos-d"><a href="#第二步：下载新的CentOS-Base-repo-到-etc-yum-repos-d" class="headerlink" title="第二步：下载新的CentOS-Base.repo 到/etc/yum.repos.d/"></a>第二步：下载新的CentOS-Base.repo 到/etc/yum.repos.d/</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo</span><br></pre></td></tr></table></figure>
<h4 id="第三步：运行yum-makecache生成缓存"><a href="#第三步：运行yum-makecache生成缓存" class="headerlink" title="第三步：运行yum makecache生成缓存"></a>第三步：运行yum makecache生成缓存</h4><p>**</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">yum clean all</span><br><span class="line">yum makecache</span><br></pre></td></tr></table></figure>
<h4 id="第四步：中间可能出现DNS错误"><a href="#第四步：中间可能出现DNS错误" class="headerlink" title="第四步：中间可能出现DNS错误"></a>第四步：中间可能出现DNS错误</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">vim /etc/resolv.conf</span><br><span class="line"><span class="meta">#</span><span class="bash">添加或者修改</span></span><br><span class="line">nameserver 8.8.8.8</span><br><span class="line">nameserver 8.8.4.4</span><br></pre></td></tr></table></figure>
<h4 id="假如不生效"><a href="#假如不生效" class="headerlink" title="假如不生效"></a>假如不生效</h4><p>修改NM_CONTROLLED=no</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">vim /etc/sysconfig/network-scripts/ifcfg-eth0</span><br></pre></td></tr></table></figure>
<h3 id="安装必备组件"><a href="#安装必备组件" class="headerlink" title="安装必备组件"></a>安装必备组件</h3><h4 id="在安装之前-用命令检查必备的RPM包有没安装"><a href="#在安装之前-用命令检查必备的RPM包有没安装" class="headerlink" title="在安装之前,用命令检查必备的RPM包有没安装"></a>在安装之前,用命令检查必备的RPM包有没安装</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rpm -q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio  libaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel sysstat unixODBC unixODBC-devel</span><br></pre></td></tr></table></figure>
<h4 id="如果出现错误-用对应的下面命令安装"><a href="#如果出现错误-用对应的下面命令安装" class="headerlink" title="如果出现错误,用对应的下面命令安装"></a>如果出现错误,用对应的下面命令安装</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br></pre></td><td class="code"><pre><span class="line">yum install -y gcc-c++.x86_64</span><br><span class="line">yum install -y gcc.x86_64</span><br><span class="line">yum install -y libstdc++.i686</span><br><span class="line">yum install -y libaio-devel.i686</span><br><span class="line">yum install -y libaio-devel.x86_64</span><br><span class="line">yum install -y compat-libstdc++-33.x86_64</span><br><span class="line">yum install unixODBC.i686 -y</span><br><span class="line">yum install unixODBC.x86_64 -y</span><br><span class="line">yum install unixODBC-devel.i686 -y</span><br><span class="line">yum install unixODBC-devel.x86_64 -y</span><br><span class="line">yum install libaio-devel.x86_64 -y</span><br><span class="line">yum install elfutils-libelf-devel.x86_64 -y</span><br><span class="line">yum install libaio.i686 -y</span><br><span class="line">yum install libgcc.i686 -y</span><br><span class="line">yum install ksh.x86_64 -y</span><br><span class="line">yum -y install glibc-static</span><br><span class="line">yum install -y binutils*</span><br><span class="line">yum install -y compat-libstdc*</span><br><span class="line">yum install -y elfutils-libelf*</span><br><span class="line">yum install -y gcc*</span><br><span class="line">yum install -y glibc*</span><br><span class="line">yum install -y ksh*</span><br><span class="line">yum install -y libaio*</span><br><span class="line">yum install -y libgcc*</span><br><span class="line">yum install -y libstdc*</span><br><span class="line">yum install -y make*</span><br><span class="line">yum install -y sysstat*</span><br><span class="line">yum install -y libXp*</span><br><span class="line">yum install -y glibc-kernheaders</span><br></pre></td></tr></table></figure>
<h4 id="最后运行一遍下面命令"><a href="#最后运行一遍下面命令" class="headerlink" title="最后运行一遍下面命令"></a>最后运行一遍下面命令</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum -y install binutils* compat-libcap1* compat-libstdc++* gcc* gcc-c++* glibc* glibc-devel* ksh* libaio* libaio-devel* libgcc* libstdc++* libstdc++-devel* libXi* libXtst* make* sysstat* elfutils* unixODBC*</span><br></pre></td></tr></table></figure>
<h3 id="检查lib是否补全"><a href="#检查lib是否补全" class="headerlink" title="检查lib是否补全"></a><strong>检查lib是否补全</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rpm -q --queryformat %-&#123;name&#125;-%&#123;version&#125;-%&#123;release&#125;.%&#123;arch&#125;&quot;\n&quot; \ compat-libstdc++-33 glibc-kernheaders glibc-headers libaio libgcc glibc-devel xorg-x11-deprecated-libs</span><br></pre></td></tr></table></figure>
<p> </p>
<h3 id="安装图形化界面"><a href="#安装图形化界面" class="headerlink" title="安装图形化界面"></a><strong>安装图形化界面</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">yum groupinstall &quot;Desktop&quot; -y</span><br><span class="line">yum groupinstall &quot;X Window System&quot; -y</span><br><span class="line">yum groupinstall &quot;KDE Desktop&quot; -y</span><br></pre></td></tr></table></figure>
<p>可以在安装centos时直接安装图形化界面即可.</p>
<h3 id="安装zip解压缩"><a href="#安装zip解压缩" class="headerlink" title="安装zip解压缩"></a><strong>安装zip解压缩</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum install -y zip unzip</span><br></pre></td></tr></table></figure>
<h3 id="卸载openjdk-加入没有-就不用卸载"><a href="#卸载openjdk-加入没有-就不用卸载" class="headerlink" title="卸载openjdk,加入没有,就不用卸载"></a><strong>卸载openjdk,加入没有,就不用卸载</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">yum remove -y java-1.8.0-openjdk java-1.8.0-openjdk-headless</span><br><span class="line">yum list | grep jdk</span><br><span class="line">yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64</span><br></pre></td></tr></table></figure>
<h3 id="配置环境变量"><a href="#配置环境变量" class="headerlink" title="配置环境变量"></a><strong>配置环境变量</strong></h3><p>yum安装的目录,默认是/usr/lib/jvm<br>使用 vim 或 vi 编辑器打开文件/etc/profile<br>vim /etc/profile<br>在文件尾部，添加如下内容<br>然后使用如下命令，使环境变量立即生效</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk </span><br><span class="line">export PATH=$JAVA_HOME/bin:$PATH </span><br><span class="line">export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tool.jar</span><br></pre></td></tr></table></figure>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">source /etc/profile</span><br></pre></td></tr></table></figure>
<h2 id="创建运行oracle数据库的系统用户和用户组"><a href="#创建运行oracle数据库的系统用户和用户组" class="headerlink" title="创建运行oracle数据库的系统用户和用户组"></a><strong>创建运行oracle数据库的系统用户和用户组</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">su root　　#切换到root</span><br><span class="line">groupadd oinstall　　#创建用户组oinstall</span><br><span class="line">groupadd dba　　#创建用户组dba</span><br><span class="line">useradd -g oinstall -g dba -m oracle　　#创建oracle用户，并加入到oinstall和dba用户组</span><br><span class="line">passwd oracle　　#设置用户oracle的登陆密码，不设置密码，在CentOS的图形登陆界面没法登陆</span><br><span class="line">id oracle # 查看新建的oracle用户</span><br></pre></td></tr></table></figure>
<h2 id="创建oracle数据库安装目录"><a href="#创建oracle数据库安装目录" class="headerlink" title="创建oracle数据库安装目录"></a><strong>创建oracle数据库安装目录</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">cd /.        #进入根目录</span><br><span class="line">mkdir -p /data/oracle　　#oracle数据库安装目录</span><br><span class="line">mkdir -p /data/oraInventory　　#oracle数据库配置文件目录</span><br><span class="line">mkdir -p /data/database　　#oracle数据库软件包解压目录</span><br><span class="line">cd /data</span><br><span class="line">ls　　#创建完毕检查一下（强迫症）</span><br><span class="line">chown -R oracle:oinstall /data/oracle　　#设置目录所有者为oinstall用户组的oracle用户</span><br><span class="line">chown -R oracle:oinstall /data/oraInventory</span><br><span class="line">chown -R oracle:oinstall /data/database</span><br></pre></td></tr></table></figure>
<p> </p>
<h2 id="修改OS系统标识（oracle默认不支持CentOS系统安装，但是centos其实就是redhat）"><a href="#修改OS系统标识（oracle默认不支持CentOS系统安装，但是centos其实就是redhat）" class="headerlink" title="修改OS系统标识（oracle默认不支持CentOS系统安装，但是centos其实就是redhat）"></a><strong>修改OS系统标识（oracle默认不支持CentOS系统安装，但是centos其实就是redhat）</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cat /proc/version</span><br><span class="line">cat /etc/redhat-release</span><br><span class="line">vim /etc/redhat-release</span><br><span class="line">改为redhat-6</span><br><span class="line">cat /etc/redhat-release</span><br></pre></td></tr></table></figure>
<blockquote>
<p>有时候使用yum安装的时候，会提示another app is currently holding the yum lock，这个时候打开另外一个terminal，在root用户下输入<br>rm -f /var/run/yum.pid<br>强制关掉yum进程</p>
</blockquote>
<h2 id="关闭防火墙"><a href="#关闭防火墙" class="headerlink" title="关闭防火墙"></a><strong>关闭防火墙</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">service iptables stop</span><br><span class="line">chkconfig iptables off     开启是on</span><br></pre></td></tr></table></figure>
<h2 id="关闭selinux（需重启生效）"><a href="#关闭selinux（需重启生效）" class="headerlink" title="关闭selinux（需重启生效）"></a><strong>关闭selinux（需重启生效）</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">vim /etc/selinux/config</span><br><span class="line">SELINUX=disabled #此处修改为disabled</span><br></pre></td></tr></table></figure>
<h2 id="修改内核参数（加入斜体部分）"><a href="#修改内核参数（加入斜体部分）" class="headerlink" title="修改内核参数（加入斜体部分）"></a><strong>修改内核参数（加入斜体部分）</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">[root@o1 ~]# vim /etc/sysctl.conf</span><br><span class="line">........</span><br><span class="line">fs.aio-max-nr = 1048576</span><br><span class="line">fs.file-max = 6815744</span><br><span class="line">kernel.shmall = 2097152</span><br><span class="line">kernel.shmmax = 536870912</span><br><span class="line">kernel.shmmni = 4096</span><br><span class="line">kernel.sem = 250 32000 100 128</span><br><span class="line">net.ipv4.ip_local_port_range = 9000 65500</span><br><span class="line">net.core.rmem_default = 262144</span><br><span class="line">net.core.rmem_max = 4194304</span><br><span class="line">net.core.wmem_default = 262144</span><br><span class="line">net.core.wmem_max = 1048576</span><br></pre></td></tr></table></figure>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">vim /etc/sysctl.conf</span><br></pre></td></tr></table></figure>
<blockquote>
<p>使配置修改内核的参数生效</p>
</blockquote>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sysctl -p</span><br></pre></td></tr></table></figure>
<p>查看修改结果</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /etc/selinux/config</span><br></pre></td></tr></table></figure>
<h2 id="对oracle用户设置限制，提高软件运行性能（斜体为添加部分）"><a href="#对oracle用户设置限制，提高软件运行性能（斜体为添加部分）" class="headerlink" title="对oracle用户设置限制，提高软件运行性能（斜体为添加部分）"></a><strong>对oracle用户设置限制，提高软件运行性能（斜体为添加部分）</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">vim /etc/security/limits.conf</span><br></pre></td></tr></table></figure>
<p>在最下面添加</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">oracle             soft    nproc           4096</span><br><span class="line">oracle             hard    nproc           65536</span><br><span class="line">oracle             soft    nofile          4096</span><br><span class="line">oracle             hard    nofile          65536</span><br></pre></td></tr></table></figure>
<h2 id="配置用户的环境变量"><a href="#配置用户的环境变量" class="headerlink" title="配置用户的环境变量"></a><strong>配置用户的环境变量</strong></h2><blockquote>
<p>使用oracle用户登陆</p>
</blockquote>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">vim /home/oracle/.bash_profile</span><br></pre></td></tr></table></figure>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">export ORACLE_BASE=/data/oracle #oracle数据库安装目录</span><br><span class="line">export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 #oracle数据库路径</span><br><span class="line">export ORACLE_SID=orcl #oracle启动数据库实例名</span><br><span class="line">export ORACLE_UNQNAME=orcl</span><br><span class="line">export ORACLE_TERM=xterm #xterm窗口模式安装</span><br><span class="line">export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH #添加系统环境变量</span><br><span class="line">export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib #添加系统环境变量</span><br><span class="line">export LANG=C #防止安装过程出现乱码</span><br><span class="line">export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK #设置Oracle客户端字符集，必须与Oracle安装时设置的字符集保持一致</span><br></pre></td></tr></table></figure>
<p> </p>
<blockquote>
<p>切记:等号两边没有空格</p>
</blockquote>
<h3 id="使用户的环境变量配置立即生效"><a href="#使用户的环境变量配置立即生效" class="headerlink" title="使用户的环境变量配置立即生效"></a>使用户的环境变量配置立即生效</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">source /home/oracle/.bash_profile</span><br></pre></td></tr></table></figure>
<h3 id="修改主机名"><a href="#修改主机名" class="headerlink" title="修改主机名"></a><strong>修改主机名</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">1.编辑/etc/sysconfig/network文件</span><br><span class="line">vim /etc/sysconfig/network</span><br><span class="line">HOSTNAME=orcl #这个修改完成后不能ping中文域名,建议不修改这个参数</span><br><span class="line">2.使用hostname命令，直接命名主机名</span><br><span class="line">hostname test01</span><br><span class="line">3.编辑/etc/hosts文件</span><br><span class="line">vim /etc/hosts</span><br><span class="line">192.168.31.201 orcl</span><br><span class="line">reboot</span><br><span class="line">检查主机名能访问不</span><br><span class="line">ping orcl</span><br></pre></td></tr></table></figure>
<h2 id="上传oracle安装包-usr-local-temp"><a href="#上传oracle安装包-usr-local-temp" class="headerlink" title="上传oracle安装包,/usr/local/temp"></a><strong>上传oracle安装包,/usr/local/temp</strong></h2><h4 id="新建-usr-local-temp-使用root账户给oracle授权-让其能访问temp目录"><a href="#新建-usr-local-temp-使用root账户给oracle授权-让其能访问temp目录" class="headerlink" title="新建/usr/local/temp,使用root账户给oracle授权,让其能访问temp目录"></a>新建/usr/local/temp,使用root账户给oracle授权,让其能访问temp目录</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">su root</span><br><span class="line">chomod +x /usr/local/temp</span><br><span class="line">chown -R oracle:oinstall /usr/local/temp</span><br></pre></td></tr></table></figure>
<h4 id="使用Oracle账户登录-解压安装文件"><a href="#使用Oracle账户登录-解压安装文件" class="headerlink" title="使用Oracle账户登录,解压安装文件"></a>使用Oracle账户登录,解压安装文件</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">[oracle@o1 ~]$ unzip linux.x64_11gR2_database_1of2.zip</span><br><span class="line">[oracle@o1 ~]$ unzip linux.x64_11gR2_database_2of2.zip</span><br></pre></td></tr></table></figure>
<p><strong>注意 :解压后,剪切到/data/database目录中</strong></p>
<h2 id="重启系统，确保所有设置生效"><a href="#重启系统，确保所有设置生效" class="headerlink" title="重启系统，确保所有设置生效"></a><strong>重启系统，确保所有设置生效</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">reboot</span><br></pre></td></tr></table></figure>
<p> </p>
<h2 id="必须是oracle用户，执行安装脚本"><a href="#必须是oracle用户，执行安装脚本" class="headerlink" title="必须是oracle用户，执行安装脚本"></a><strong>必须是oracle用户，执行安装脚本</strong></h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">su oracle</span><br><span class="line">cd /data/database/database/</span><br></pre></td></tr></table></figure>
<p><strong>记着:一定是在Oracle用户登录下,才可以使用下面命令,直接reboot,使用Oracle登录即可.</strong><br><strong>./runInstaller</strong><br> <br><strong>假如提示没有权限,-R 递归赋予权限.</strong></p>
<p><strong>对当前目录文件夹文件赋值所有权限</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">chmod -R 777 文件夹名字</span><br></pre></td></tr></table></figure>
<p> <br><strong>开始安装,忽略对操作系统的认证</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./runInstaller -ignoresysprereqs</span><br></pre></td></tr></table></figure>


<p><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643767475-92b0894f-5f9d-46e9-b4e0-980345bf77a4.png#align=left&display=inline&height=522&margin=%5Bobject%20Object%5D&name=image.png&originHeight=1044&originWidth=1149&size=251871&status=done&style=none&width=574.5" alt="image.png"><br><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643777835-d605cc87-fc90-497a-b386-e904e15b0151.png#align=left&display=inline&height=517&margin=%5Bobject%20Object%5D&name=image.png&originHeight=1034&originWidth=1157&size=262717&status=done&style=none&width=578.5" alt="image.png"><br><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643786655-09456f34-05bb-486c-8714-a400f9b3f462.png#align=left&display=inline&height=519&margin=%5Bobject%20Object%5D&name=image.png&originHeight=1038&originWidth=1165&size=236887&status=done&style=none&width=582.5" alt="image.png"><br><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643797909-0489b9cc-7341-48cb-9c73-08ec1066c47b.png#align=left&display=inline&height=429&margin=%5Bobject%20Object%5D&name=image.png&originHeight=858&originWidth=1157&size=299528&status=done&style=none&width=578.5" alt="image.png"></p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">访问地址是:https://192.168.31.201:1158/em</span><br></pre></td></tr></table></figure>
<p><strong>然后提示要执行两个脚本，使用root执行</strong><br><strong><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643813439-eff3b27f-88b2-4a0d-a5b7-f528e5fcad09.png#align=left&display=inline&height=489&margin=%5Bobject%20Object%5D&name=image.png&originHeight=977&originWidth=1165&size=341239&status=done&style=none&width=582.5" alt="image.png"></strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sh /u01/app/oraInventory/orainstRoot.sh</span><br><span class="line">sh /u01/app/oracle/product/11.2.0/dbhome_1/root.sh</span><br><span class="line"><span class="meta">#</span><span class="bash"> 直接回车即可</span></span><br></pre></td></tr></table></figure>
<p>执行完成，点ok，安装成功<br><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643839895-70dd29e6-c95b-498f-8f0f-1cfbb0991063.png#align=left&display=inline&height=512&margin=%5Bobject%20Object%5D&name=image.png&originHeight=1023&originWidth=1165&size=237727&status=done&style=none&width=582.5" alt="image.png"></p>
<p>在本机打开1158端口，可以登陆控制台</p>
<p><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643854278-e7db09ae-8bfc-4d69-97b0-1a2a9e3fd9ce.png#align=left&display=inline&height=412&margin=%5Bobject%20Object%5D&name=image.png&originHeight=824&originWidth=1172&size=196319&status=done&style=none&width=586" alt="image.png"></p>
<h2 id="用plsql客户端通过外网连接"><a href="#用plsql客户端通过外网连接" class="headerlink" title="用plsql客户端通过外网连接"></a><strong>用plsql客户端通过外网连接</strong></h2><p>直接用oracle公司提供的sqldeveloper完美连接,PLsqldevelop 配置繁琐,测试连接失败.</p>
<h3 id=""><a href="#" class="headerlink" title=""></a></h3><h4 id="PL-SQL-developer连接不上-出现丢失文件"><a href="#PL-SQL-developer连接不上-出现丢失文件" class="headerlink" title="PL/SQL developer连接不上,出现丢失文件"></a><strong>PL/SQL developer连接不上,出现丢失文件</strong></h4><p>解决:对应32位或者64位版本,下载instantclient_11_2,在developer工具的tools..</p>
<p><img src="https://cdn.nlark.com/yuque/0/2020/png/661733/1602643871077-82113c0b-8462-4e31-8925-5173ca8d1e5f.png#align=left&display=inline&height=271&margin=%5Bobject%20Object%5D&name=image.png&originHeight=541&originWidth=968&size=118436&status=done&style=none&width=484" alt="image.png"></p>
<h2 id="启动oracle"><a href="#启动oracle" class="headerlink" title="启动oracle"></a><strong>启动oracle</strong></h2><p>su oracle<br>sqlplus “/as sysdba”</p>
<h4 id="启动-startup"><a href="#启动-startup" class="headerlink" title="启动:startup"></a>启动:startup</h4><h4 id="shutdown-immediate"><a href="#shutdown-immediate" class="headerlink" title="shutdown immediate"></a>shutdown immediate</h4><h4 id="exit"><a href="#exit" class="headerlink" title="exit;"></a>exit;</h4><h4 id="检查oracle的DB监听是否正常"><a href="#检查oracle的DB监听是否正常" class="headerlink" title="检查oracle的DB监听是否正常"></a>检查oracle的DB监听是否正常</h4><p>lsnrctl status</p>
<h4 id="如果没有启动-启动监听"><a href="#如果没有启动-启动监听" class="headerlink" title="如果没有启动,启动监听"></a>如果没有启动,启动监听</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">lsnrctl start  #开启监听</span><br><span class="line">dbstart    # 启动用户实例</span><br></pre></td></tr></table></figure>


<p>tnsnames.ora:用于客户端,提示客户端从哪个监听实例连接</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">ORCL =</span><br><span class="line">  (DESCRIPTION =</span><br><span class="line">    (ADDRESS = (PROTOCOL = TCP)(HOST = node75)(PORT = 1521))</span><br><span class="line">    (CONNECT_DATA =</span><br><span class="line">      (SERVER = DEDICATED)</span><br><span class="line">      (SERVICE_NAME = orcl)</span><br><span class="line">    )</span><br><span class="line">  )</span><br></pre></td></tr></table></figure>
<p>listener.ora：用于服务端，用于提示服务端监听哪些实例。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">LISTENER =</span><br><span class="line">  (DESCRIPTION_LIST =</span><br><span class="line">    (DESCRIPTION =</span><br><span class="line">      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))</span><br><span class="line">      (ADDRESS = (PROTOCOL = TCP)(HOST =node75)(PORT = 1521))</span><br><span class="line">    )</span><br><span class="line">  )</span><br><span class="line"></span><br><span class="line">ADR_BASE_LISTENER = /opt/oracle</span><br></pre></td></tr></table></figure>




<h4 id="如果在浏览器里面打不开http-localhost-localdomain-1158-em"><a href="#如果在浏览器里面打不开http-localhost-localdomain-1158-em" class="headerlink" title="如果在浏览器里面打不开http://localhost.localdomain:1158/em"></a>如果在浏览器里面打不开<a target="_blank" rel="noopener" href="http://localhost.localdomain:1158/em">http://localhost.localdomain:1158/em</a></h4><p>使用emctl start dbconsole,即可启动<br>此指令运行时间很长,需要等待.</p>
<h4 id="假如访问不到-执行数据库初始化配置"><a href="#假如访问不到-执行数据库初始化配置" class="headerlink" title="假如访问不到,执行数据库初始化配置"></a>假如访问不到,执行数据库初始化配置</h4><p>| /data/oraInventory/orainstRoot.sh<br>/data/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh |<br>| — |</p>
<p> </p>
<h3 id="开机启动oracle"><a href="#开机启动oracle" class="headerlink" title="开机启动oracle"></a>开机启动oracle</h3><h4 id="root用户登录-su-root"><a href="#root用户登录-su-root" class="headerlink" title="root用户登录:  su  root"></a>root用户登录:  su  root</h4><h4 id="vim-etc-oratab"><a href="#vim-etc-oratab" class="headerlink" title="vim /etc/oratab"></a>vim /etc/oratab</h4><p>找到orcl:/u01/app/oracle/product/12.1.0/dbhome_1:N<br>把N改为Y<br>orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y<br>此地址,以安装地址为准.</p>
<h4 id="vi-etc-rc-d-rc-local"><a href="#vi-etc-rc-d-rc-local" class="headerlink" title="vi /etc/rc.d/rc.local"></a>vi /etc/rc.d/rc.local</h4><p>su oracle -lc “/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start”<br>su oracle -lc /u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart</p>
<p>l 表示同时切换用户目录。比如你要换到oracle用户下你的目录就同时在oracle目录下了。<br>-c 则表示执行完命令好再返回到原来的用户</p>
<h4 id="reboot"><a href="#reboot" class="headerlink" title="reboot"></a>reboot</h4><p>有人安装完oracle后，/etc/oratab找不到，解决办法：<br>用root用户进入系统，进入$ORACLE_HOME,即oracle的安装目录，找到root.sh,执行一下即可<br>#./root.sh   直接回车<br>这时候，你会发现文件/etc/oratab出现了。</p>
<h2 id="安装oracle中出现的错误"><a href="#安装oracle中出现的错误" class="headerlink" title="安装oracle中出现的错误"></a><strong>安装oracle中出现的错误</strong></h2><h3 id="Linux下sqlplus不能使用光标箭头"><a href="#Linux下sqlplus不能使用光标箭头" class="headerlink" title="Linux下sqlplus不能使用光标箭头"></a><strong>Linux下sqlplus不能使用光标箭头</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum -y install readline*</span><br></pre></td></tr></table></figure>
<h4 id="上传rlwrap-0-37-tar-gz到temp目录"><a href="#上传rlwrap-0-37-tar-gz到temp目录" class="headerlink" title="上传rlwrap-0.37.tar.gz到temp目录"></a><strong>上传rlwrap-0.37.tar.gz到temp目录</strong></h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">tar -xzvf rlwrap-0.37.tar.gz</span><br><span class="line">cd rlwrap-0.37</span><br><span class="line">./configure</span><br><span class="line">make</span><br><span class="line">make install</span><br></pre></td></tr></table></figure>
<h4 id="su-root"><a href="#su-root" class="headerlink" title="su root"></a><strong>su root</strong></h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">vim .bash_profile</span><br><span class="line">添加下面两个文件:</span><br><span class="line">alias sqlplus=&#x27;rlwrap sqlplus&#x27;</span><br><span class="line">alias rman=&#x27;rlwrap rman&#x27;</span><br></pre></td></tr></table></figure>
<h4 id="source-bash-profile"><a href="#source-bash-profile" class="headerlink" title="source .bash_profile"></a><strong>source .bash_profile</strong></h4><h3 id="vim中文乱码"><a href="#vim中文乱码" class="headerlink" title="vim中文乱码"></a><strong>vim中文乱码</strong></h3><h4 id="设置-下或者oracle用户下的-vimrc文件"><a href="#设置-下或者oracle用户下的-vimrc文件" class="headerlink" title="设置~下或者oracle用户下的.vimrc文件"></a><strong>设置~下或者oracle用户下的.vimrc文件</strong></h4><p>vim ~/.vimrc    #或者vim /home/oracle(用户名)/.vimrc<br>添加下面命令:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1</span><br><span class="line">set enc=utf8</span><br><span class="line">set fencs=utf8,gbk,gb2312,gb18030</span><br></pre></td></tr></table></figure>
<h4 id="配置图形化监听"><a href="#配置图形化监听" class="headerlink" title="配置图形化监听"></a>配置图形化监听</h4><p>netca</p>
<h3 id="使用xshell中sqlplus时-出现commond-not-found"><a href="#使用xshell中sqlplus时-出现commond-not-found" class="headerlink" title="使用xshell中sqlplus时,出现commond not found"></a><strong>使用xshell中sqlplus时,出现commond not found</strong></h3><p>解决:centos和xshell都使用Oracle账户登录,就有sqlplus命令了</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">su - root</span><br><span class="line">ln -s $ORACLE_HOME/bin/sqlplus /usr/bin</span><br><span class="line">su - oracle</span><br><span class="line">sqlplus /nolog</span><br></pre></td></tr></table></figure>
<h3 id="pl-sql-连接时报错ORA-12541-TNS-no-listener"><a href="#pl-sql-连接时报错ORA-12541-TNS-no-listener" class="headerlink" title="pl/sql 连接时报错ORA-12541:TNS:no listener"></a><strong>pl/sql 连接时报错ORA-12541:TNS:no listener</strong></h3><p>重启一下监听：lsnrctl stop、lsnrctl start</p>
<h3 id="Oracle账户被锁：the-account-is-locked"><a href="#Oracle账户被锁：the-account-is-locked" class="headerlink" title="Oracle账户被锁：the account is locked"></a><strong>Oracle账户被锁：the account is locked</strong></h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash">sqlplus</span></span><br><span class="line">使用system或sys账户登录，口令即安装Oracle时输入的管理口令</span><br><span class="line"><span class="meta">#</span><span class="bash">alter user scott account unlock;</span></span><br><span class="line"><span class="meta">#</span><span class="bash">重置用户密码</span></span><br><span class="line">alter user username identified by password;</span><br><span class="line"><span class="meta">#</span><span class="bash">其中username为用户名（如：scott），password为新密码</span></span><br></pre></td></tr></table></figure>
<h3 id="by-yh-2018-1-1"><a href="#by-yh-2018-1-1" class="headerlink" title="by-yh 2018-1-1"></a><strong>by-yh 2018-1-1</strong></h3><h3 id="修正于2019-11-14"><a href="#修正于2019-11-14" class="headerlink" title="修正于2019-11-14"></a><strong>修正于2019-11-14</strong></h3><blockquote>
<p>熬了一宿,终于找到问题所在了</p>
</blockquote>
<h3 id="整理于020-10-14上午"><a href="#整理于020-10-14上午" class="headerlink" title="整理于020-10-14上午"></a>整理于020-10-14上午</h3>
</div>


    <div class="post-guide">
        <div class="item left">
            
              <a href="/xinghe/2021/10/02/04.Linux/31-maven%E7%A7%81%E6%9C%8D%E4%B9%8Bnexus/">
                  <i class="fa fa-angle-left" aria-hidden="true"></i>
                  31-maven私服之nexus
              </a>
            
        </div>
        <div class="item right">
            
              <a href="/xinghe/2021/10/02/04.Linux/28-rmp%E5%8C%85%E6%9F%A5%E6%89%BE%E5%9C%B0%E5%9D%80/">
                28-rmp包查找地址
                <i class="fa fa-angle-right" aria-hidden="true"></i>
              </a>
            
        </div>
    </div>



	<div id="vcomments"></div>


<script>
	
		// 评论
		new Valine({
			av: AV,
			el: '#vcomments',
			notify: false,
			verify: false,
			path: window.location.pathname,
			appId: 'g5woR5QAkE0rKofVTPiCqSuh-gzGzoHsz',
			appKey: 'Qbwz6GLnQv6JgX9bgtP1bdPC',
			placeholder: '请输入评论',
			avatar: 'retro',
			recordIP: false
		})
	
	
    // 显示次数
		function showTime(Counter) {
			var query = new AV.Query("Counter");
			if($(".leancloud_visitors").length > 0){
				var url = $(".leancloud_visitors").attr('id').trim();
				// where field
				query.equalTo("words", url);
				// count
				query.count().then(function (number) {
					// There are number instances of MyClass where words equals url.
					$(document.getElementById(url)).text(number?  number : '--');
				}, function (error) {
					// error is an instance of AVError.
				});
			}
		}
		// 追加pv
		function addCount(Counter) {
			var url = $(".leancloud_visitors").length > 0 ? $(".leancloud_visitors").attr('id').trim() : 'wujun234.github.io';
			var Counter = AV.Object.extend("Counter");
			var query = new Counter;
			query.save({
				words: url
			}).then(function (object) {
			})
		}
		$(function () {
			var Counter = AV.Object.extend("Counter");
			addCount(Counter);
			showTime(Counter);
		});
	
</script>
	</div>
	<div id="footer">
	<p>
	©2015-<span id="footerYear"></span> 
	<a href="/">YH</a> 
	
	
		|
		<span id="busuanzi_container_site_pv">
			本站总访问量
			<span id="busuanzi_value_site_pv"></span>次
		</span>
		|
		<span id="busuanzi_container_site_uv"> 
			有
			<span id="busuanzi_value_site_uv"></span>看过我的博客啦
		</span>
	
	<br>
	<span id="span"></span>
	</p>
</div>
<script type="text/javascript"> 
	document.getElementById('footerYear').innerHTML = new Date().getFullYear() + '';
</script>
<script type="text/javascript">
    function runtime(){
        // 初始时间，日/月/年 时:分:秒
        X = new Date("11/18/2015 0:00:00");
        Y = new Date();
        T = (Y.getTime()-X.getTime());
        M = 24*60*60*1000;
        a = T/M;
        A = Math.floor(a);
        b = (a-A)*24;
        B = Math.floor(b);
        c = (b-B)*60;
        C = Math.floor((b-B)*60);
        D = Math.floor((c-C)*60);
        //信息写入到DIV中
        span.innerHTML = "本站勉强运行: "+A+"天"+B+"小时"+C+"分"+D+"秒"
    }
    setInterval(runtime, 1000);
</script>
	<button id="totop-toggle" class="toggle"><i class="fa fa-angle-double-up" aria-hidden="true"></i></button>
</body>
</html>